package com.bean.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service
public class FirstService {

    @Autowired
    private SecondService secondService;

    public void firstMethod(SecondService secondService){
        secondService.secondMethod();
        System.out.println("first method run");
    }

}
